package cn.cdeden.knowledge.mapper;

import cn.cdeden.knowledge.domain.SysSchedule;
import cn.cdeden.knowledge.domain.SysSchedulePermissions;
import cn.cdeden.knowledge.domain.dto.SysSchedulePermissionsDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysSchedulePermissionsMapper extends BaseMapper<SysSchedulePermissions> {
    List<SysSchedulePermissionsDto> getAllPermissions();

    List<SysSchedule> checkPermissions(@Param("userId") Long userId);

    List<SysSchedule> checkPermissionsById(@Param("scheduleId") Long scheduleId, @Param("userId") Long userId, @Param("detailsName") String detailsName);
}
